package com.ctshk.rpc.tour.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 团期自定义模板-日期段划分
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-02-01
 */
@Data
@TableName(value = "t_series_trip_schedule_custom_date_subsection",autoResultMap = true)
@ApiModel(value="SeriesTripScheduleCustomDateSubsection对象", description="团期自定义模板-日期段划分")
public class SeriesTripScheduleCustomDateSubsection {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "所属团期")
    private Long scheduleId;

    @ApiModelProperty(value = "所属行程")
    private Long tripId;

    @ApiModelProperty(value = "分段主数据ID")
    private Long subsectionId;

    @ApiModelProperty(value = "分段名称")
    private String subsectionName;

    @ApiModelProperty(value = "分段日期类型")
    private Integer dateType;

    @TableField(typeHandler = FastjsonTypeHandler.class)
    @ApiModelProperty(value = "勾选星期每天")
    private List<Integer> checkWeekDays;

    @ApiModelProperty(value = "时间起始")
    private LocalDate dateBegin;

    @ApiModelProperty(value = "时间结束")
    private LocalDate dateEnd;


}
